<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>clientlogin (GData::Client::Base)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/gdata/client/gdata.rb, line 130</span>
      <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clientlogin</span>(<span class="ruby-identifier">username</span>, <span class="ruby-identifier">password</span>, <span class="ruby-identifier">captcha_token</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">captcha_answer</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">service</span> = <span class="ruby-keyword kw">nil</span>)
        <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">service</span>.<span class="ruby-identifier">nil?</span>
          <span class="ruby-identifier">service</span> = <span class="ruby-ivar">@clientlogin_service</span>
        <span class="ruby-keyword kw">end</span>
        <span class="ruby-ivar">@auth_handler</span> = <span class="ruby-constant">GData</span><span class="ruby-operator">::</span><span class="ruby-constant">Auth</span><span class="ruby-operator">::</span><span class="ruby-constant">ClientLogin</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">service</span>)
        <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@clientlogin_url</span>
          <span class="ruby-ivar">@auth_handler</span>.<span class="ruby-identifier">auth_url</span> = <span class="ruby-ivar">@clientlogin_url</span>
        <span class="ruby-keyword kw">end</span>
        <span class="ruby-identifier">source</span> = <span class="ruby-constant">GData</span><span class="ruby-operator">::</span><span class="ruby-constant">Auth</span><span class="ruby-operator">::</span><span class="ruby-constant">SOURCE_LIB_STRING</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@source</span>
        <span class="ruby-ivar">@auth_handler</span>.<span class="ruby-identifier">get_token</span>(<span class="ruby-identifier">username</span>, <span class="ruby-identifier">password</span>, <span class="ruby-identifier">source</span>, <span class="ruby-identifier">captcha_token</span>, <span class="ruby-identifier">captcha_answer</span>)
      <span class="ruby-keyword kw">end</span></pre>
</body>
</html>